package com.example.myfirstapplication

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.example.myfirstapplication.utils.BaseActivity
import kotlinx.android.synthetic.main.activity_view_constraintlayout.*

class LayoutActivity : BaseActivity() {
    private var flag = true
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_view_constraintlayout)
        btn_setting.setOnClickListener {
            setting_group.visibility = if (flag) {
                View.VISIBLE
            } else {
                View.GONE
            }
            flag=!flag
        }
    }
}
